import http from '@/utils/http'

/** 登录 */
export function login(data) {
    return http.post('/user/login', data)
}

/** 退出登录 */
export function logout() {
    return http.post('/user/logout')
}

/** 获取用户信息 */
export const getUserInfo = () => {
    return http.get('/user/getUserInfo')
}

/** 获取用户路由信息 */
export const getUserAsyncRoutes = () => {
    return http.get('/user/routes')
}


/** 获取菜单信息 */
export const getSystemMenuOptions = () => {
    return http.get('/system/menu/options')
}
